var mongoose = require('mongoose')

var schema = require('../config/schema')
var noteItemSchema = mongoose.Schema(schema.noteItem)

// vacationSchema.methods.getDisplayPrice = function(){

//     return '$' + (this.priceInCents/100).toFixed(2);
// }

noteItemSchema.set('toJSON', {
    getters: true
})

var noteItemModel = mongoose.model('noteItem', noteItemSchema)

module.exports = noteItemModel;